<?php
/**
 * 文章分类验证器
 */

namespace app\common\validate;

class ArticleCategoryValidate extends Validate
{
    protected $rule = [
            'name|分类名称' => 'require',
    'sort|排序' => 'require',
    'is_show|是否显示:1-是;0-否' => 'require',

    ];

    protected $message = [
            'name.require' => '分类名称不能为空',
    'sort.require' => '排序不能为空',
    'is_show.require' => '是否显示:1-是;0-否不能为空',

    ];

    protected $scene = [
        'add'  => ['name','sort','is_show',],
'edit' => ['name','sort','is_show',],

    ];

    

}
